home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Html / ^CutePage / data1.cab / JsBox_Template / contents_PageletServer.JsBox.pgt < prev    next >
Encoding:
Text File  |  2000-05-12  |  1.4 KB  |  45 lines

  1. ========== Description Part Begin ==========
  2. Title = contents
  3. ProgID = PageletServer.JsBox
  4. LastUpdateTime = 36432.396168981
  5. PreviewPath = 
  6. Description = check the input is digit or not
  7. ========== Description Part End ==========
  8.  
  9. ========== Parameter Part Begin ==========
  10. NovacantPara = 50,4,Submit,http://www.cutepage.com,Center,http:,www.cutepage.com
  11. NoVacantAlert = There are no contents
  12. JsBoxType = 10
  13. ========== Parameter Part End ==========
  14.  
  15. ========== Resource Part Begin ==========
  16. Resource Number = 0
  17. ========== Resource Part End ==========
  18.  
  19. ========== HTML Part Begin ==========
  20. Segment Number = 2
  21. Segment Position = script
  22. <script language="javascript">
  23. function noEntry(formname, alerttext){
  24.     mt=document.forms[formname].content.value;
  25.     if (mt.length<1){
  26.         alert(alerttext);
  27.         return false;}
  28. }
  29. </script>
  30. ===== Segment End =====
  31. Segment Position = cursor
  32. <script language="javascript">
  33. srctecformnovancantcontentsalerttextvacant="There are no contents"
  34. </script>
  35. <form name="srctecformnovancantcontents" action="http://www.cutepage.com" enctype="text/plain" method="post" onsubmit="return noEntry('srctecformnovancantcontents',srctecformnovancantcontentsalerttextvacant)">
  36. <div align="Center">
  37. <textarea cols="50" rows="4" name="content"></textarea>
  38. <br>
  39. <input type="submit" name="submit" value="Submit">
  40. </div>
  41. </form>
  42. ===== Segment End =====
  43. ========== HTML Part End ==========
  44.  
  45.